﻿using System;
using System.Collections.Concurrent;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Shapes;
using Serilog;

namespace Util
{
    /*public class LogUtil
    {
        private static readonly ThreadLocal<ILogger> LoggerThreadLocal = new(() => CreateLogger(), trackAllValues: false);

        private static ILogger CreateLogger()
        {
            return new LoggerConfiguration().MinimumLevel.Debug().WriteTo.File("log.txt").CreateLogger();
        }

        public static void SetDebugLog(string logMessage)
        {
            if (System.Diagnostics.Debugger.IsAttached)
            { // 确保每个线程的日志记录器实例都被创建
                var logger = LoggerThreadLocal.Value ?? CreateLogger();
                logger.Information(logMessage);
            }
        }

        public static void SetLog(string logMessage)
        {
            var logger = LoggerThreadLocal.Value ?? CreateLogger();
            logger.Information(logMessage);
        }
    }*/


  
}
